/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Banking_vs_2;

/**
 *
 * @author Root
 */
public class Customer {

    private String firstName, lastName;
    private Account account;

    public Customer(String f, String l) {
        this.firstName = f;
        this.lastName = l;
        System.out.println("Creating the customer "+f+" "+l);

    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public Account getAccount() {
        return account;
    }


    public void setAccount(Account acc) {
        this.account = acc;
    }
    public void show_customer(){
        System.out.println("Customer ["+firstName+" , "+lastName +"] has a balance of "+account.getBalance());
    }
}
